<!DOCTYPE html>
<html>
<head>
    <title>Markdown.js</title>
    <script src="https://cdn.bootcdn.net/ajax/libs/showdown/1.9.1/showdown.js"></script>
</head>
<style>
    blockquote {
        border-left:#eee solid 5px;
        padding-left:20px;
    }
    ul li {
        line-height: 20px;
    }

    code {
        color:#D34B62;
        background: #F6F6F6;
    }

</style>
<body>
<div>


    <textarea id="oriContent" style="height:400px;width:600px;" onkeyup="convert()"></textarea>

    <div id="result"></div>

</div>

<script type="text/javascript">
function convert(){
    var text = document.getElementById("oriContent").value;
    var converter = new showdown.Converter();
    var html = converter.makeHtml(text);
    document.getElementById("result").innerHTML = html;
}
</script>
</body>
</html>